package comday08.itheima01;

public class Demo07 {
    public static void main(String[] args) {


        String s = "lbwnb!";

        //length()  :获取字符串长度
        int i = s.length();
        System.out.println(i);     //6


        //charAt(int index)  :根据索引获取字符
        char c1 = s.charAt(0);
        System.out.println(c1);
    }
}
